<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>个人中心——账户设置</title>
	<!-- Set render engine for 360 browser -->
		<meta name="renderer" content="webkit">
		<!-- No Baidu Siteapp-->
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<!-- Add to homescreen for Chrome on Android -->
		<meta name="mobile-web-app-capable" content="yes">
		<!-- Add to homescreen for Safari on iOS -->
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="__PUBLIC__/assets/css/amazeui.css">
		<link rel="stylesheet" href="__PUBLIC__/assets/css/app.css">
		<!--[if lt IE 9]>
		<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
		<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
		<script src="__PUBLIC__/assets/js/amazeui.ie8polyfill.min.js"></script>
		<![endif]-->
		<script type="text/javascript" src="__PUBLIC__/assets/js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/jquery.validate.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/validate-ex.js"></script>
		<script src="__PUBLIC__/assets/js/amazeui.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/app.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/jump.js"></script>
		<!--鼠标经过导航跳动开始-->
		<!--<script type="text/javascript">
			$(function(){
				 $(".am-topbar-nav li").each(function(k,a){
					new JumpObj(a,5);//晃动幅度
					$(a).hover(function(){this.parentNode.parentNode.addClass("hover")});
				});
		 	}); 
		
		</script>-->
		<!--鼠标经过导航跳动结束-->
	</head>
	<body>	
    <!--#include file="head.html"-->
		<!--内容开始-->
         <!--#include file="left.html"-->
					<div class="am-u-lg-10" style="padding: 0;">
						<div class="right order_right">
							<div class="order_title" style="border-bottom: 1px solid #d7d6d6;">
								<p>我的收藏</p>
							</div>
							
					<div class="am-u-lg-12 pad list_li">
						<!--foreach:{$list $vo}-->
						<!--if:{!empty($vo[cards_id])}-->
						<div class="list_box1">
							<img src="__PUBLIC__/assets/images/zi.jpg"	style="margin-right: 1em;">
								<a href="__APP__/forum/forum_show?id={$vo.cards_id}">{$vo.title}</a>
								<!-- <span><img src="__PUBLIC__/assets/images/new.png"></span> -->
						</div>
						<!--/if-->
						<!--/foreach-->
						<div class="am-cf"></div>
					</div>
				</div>
				<div class="am-u-lg-12 pad pad_margin">
					<div class="am-u-lg-6 pad"></div>
					<div class="am-u-lg-6 pad">
					<div class="sabrosus">
						<ul data-am-widget="pagination">
						{$page}
						</ul></div>
					</div>
						</div>
					</div>
				</div>
			</div>
			
		</div>
	<script>
		function edit(etype) {
			if(etype=='nickname'){
				document.getElementById("oldnicknamebox").style.display="none";
				document.getElementById("newnicknamebox").style.display="block";
			}
			if(type=='sex'){

			}
			if(type=='birthday'){

			}
			if(type=='area'){

			}


/*			var request = new XMLHttpRequest();
			request.open("GET", "__APP__/user/email_exist?email=" + document.getElementById("emailuser").value);
			request.send();
			request.onreadystatechange = function() {
				if (request.readyState===4) {
					if (request.status===200) {
						//document.getElementById("isexist").innerHTML = request.responseText;
						if(request.responseText=="1"){
							document.getElementById("isexist").style.display="block";
						}
						else {
							document.getElementById("isexist").style.display="none";
						}

					} else {
						alert("发生错误：" + request.status);
					}
				}
			}*/
		}
		
		function edit_save(jian){
			var zhi;
			if(jian=='nickname'){
				zhi=document.getElementById("nwenickname").value;
			}
			var request = new XMLHttpRequest();
			request.open("POST", "__APP__/user/edit_save");
			var data = jian+"=" + zhi;
			request.setRequestHeader("Content-type","application/x-www-form-urlencoded");
			request.send(data);
			request.onreadystatechange = function() {
				if (request.readyState===4) {
					if (request.status===200) {
						
						if(request.responseText=="1"){
							document.getElementById(jian).innerHTML = zhi;
							document.getElementById("new"+jian+"box").value="";
							document.getElementById("new"+jian+"box").style.display="none";
							document.getElementById("old"+jian+"box").style.display="block";
						}
						else {
							/*document.getElementById("isexist").style.display="none";*/
							alert("修改失败！");
						}

					} else {
						alert("发生错误：" + request.status);
					}
				}
			}
		}
	</script>

			<!--底部导航开始-->
		<!--#include file="foot.html"-->
		<!--底部导航结束-->
	</body>
</html>
